package pub.developers.forum.api.response.follow;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;


//继承Serializable 实体类可以被序列化


@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class postsFollowResponse implements Serializable {
    private Long id ; //帖子id

    private Date CreateAt ; //帖子发表日期

    private String title ; //帖子标题

    private String markdownContent;//文本内容

    private String htmlContent ; //html内容

    private Long views;//帖子浏览量

    private postsFollowResponse.follower follower;

    public void setFollower(follower follower) {
        this.follower = follower;
    }

    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class follower {
        private Long id ; //点赞者的id

        private String nickname; //点赞人的昵称

        private String avatar ; //点赞人的头像
    }
}
